module.exports = (options) => {
    return  async (ctx, next) => {
                try {
                    await next();
                } catch (error) {
                    // console.log(error);
                    ctx.body = {
                    error:error.errno,
                    status:error.status,
                    msg:error.sqlMessage,
                    code:error.code
                    }
                }
            }
}